#!/usr/bin/expect

set timeout 5
spawn ssh -l tsunade web1
expect "\$ "
send "cd konoha-et2011\n"
expect "\$ "
send "svn up\n"
sleep 5
expect "\$ "
send "exit\n";

set timeout 5
spawn ssh -l tsunade db1
expect "\$ "
send "cd konoha-et2011\n"
expect "\$ "
send "svn up\n"
expect "\$ "
send "exit\n";

interact
